/*
 * @Author: zwx
 * @Date: 2024-05-30 23:47:41
 * @LastEditors: zwx
 * @LastEditTime: 2024-05-30 23:47:47
 * @Description: 防抖
 */
let timeout = null
function debounce(fn, wait) {
    if (timeout !== null) clearTimeout(timeout)
    timeout = setTimeout(fn, wait)
}
export default debounce
